package com.maxd.modules.redPacket.service;

import com.maxd.error.Result;
import com.maxd.modules.redPacket.entity.RedPacket;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;

public interface IRedPacketService {

    RedPacket insertRedPacket(Long userId);

    Result helpTakeRedPacket(Long userId, String code);

    void confirm(Long userId);

    Result getLink(Long redPacketId);

    void getLinkQrCode(Long redPacketId, HttpServletResponse response);

    Result getDayMoney();

    Result selectRedPacketListByUserId(Integer page, Integer size, Long userId);

    Result selectRedPacketListByUserIds(Integer page, Integer size, Long userId, Integer status);

    Result selectRedPacketListByStatus(Integer page, Integer size);

    Result selectRedPacketListByStatuss(Integer page, Integer size, Integer status);

    Result withdrawDeposit(Long redPacketId);


}
